import React from 'react';
import { connect } from 'dva';

import styles from './announce.css'

const Announce = ({
  goBack,
  noticeInfo,
}) => {

  const createMarkup = (text) => {
    return { __html: text };
  };

  return(
    <div className={styles.content}>
      <div style={{marginTop:'2.8125em'}}>
        {noticeInfo.content ? (
          <div  className={styles.htmlContent}
             dangerouslySetInnerHTML={createMarkup(noticeInfo.content)}></div>
        ):''}

      </div>
    </div>
  )
}

export default connect()(Announce);
